package dymnd.net;

import java.awt.Color;
import java.io.DataOutputStream;
import java.io.OutputStream;

public class PaintPacket extends BasePacket{

	//specifies that the packet is constructing a new layer
	public static final int ACTION_NEW_LAYER = 0;
	//specifies that the packet is swapping one layer to the specified index
	public static final int ACTION_SWAP_LAYER = 1;
	//specifies that the packet is removing a layer
	public static final int ACTION_REMOVE_LAYER = 2;
	//specifies that the packet is calling a plugin of the specified pluginHash
	public static final int ACTION_PLUGIN = 3;
	
	
	
	//means that there is no plugin selected
	public static final int PLUGIN_NONE = 0;
	
	
	public int x = 0;
	public int y = 0;
	
	public int lastX = 0;
	public int lastY = 0;
	
	public Color primaryColor = Color.black;
	public Color secondaryColor = Color.white;
	
	public boolean strokeStart = false;
	
	public boolean inputReleased = false;
	
	public int pluginHash = PLUGIN_NONE;
	
	public int layer = 0;
	
	public double pressure = 0;
	
	public int rad = 0;
	
	
	public boolean contstructionPacket = false;
	
	public int action = -1;
	
	public int alpha = 255;
	
	
	
}
